using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace PuzzleDulex.bamboo
{
    class TextUtil
    {
        public static void printString(SpriteBatch g, float x, float y, String text, int style, Color color)
        {
            SpriteFont fontToDraw = null;
            switch (style)
            {
                case Font.SIZE_LARGE:
                    {
                        fontToDraw = Game1.globalTextFontLarge;


                    }
                    break;

                case Font.SIZE_MEDIUM:
                    {
                        fontToDraw = Game1.globalTextFontNormal;


                    }
                    break;
                case Font.SIZE_SMALL:
                    {
                        fontToDraw = Game1.globalTextFontSmall;


                    }
                    break;
                    
            }

            g.DrawString(fontToDraw, text, new Vector2(x, y), color);
        }
    }
}
